package com.huacai;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class HuaCaiApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext ctx =
                SpringApplication.run(HuaCaiApplication.class, args);

        /* ===== 调试：看 deepseek.api-key 是否被 Spring 读到 ===== */
        System.out.println(">>>> deepseek.api-key = " +
                ctx.getEnvironment().getProperty("deepseek.api-key"));
    }
}